package com.briup.cms.service;

import com.briup.cms.bean.Carousel;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author Layla
 * @version 1.0
 * @date 2021/7/18 14:56
 */

public interface ICarouselService {
    //分页查询轮播图
    PageInfo<Carousel> findAll(int pageNum, int pageSize) throws CustomerException;
//删除轮播图

    void deleteById(int id) throws CustomerException;

    //保存轮播图
    void saveCarousel(Carousel carousel) throws CustomerException;

    //更新轮播图
    void updateCarousel(Carousel carousel) throws CustomerException;

    //查询所有启用轮播图
    List<Carousel> findYesCarousel() throws CustomerException;

}